package com.hrw.android.player;

import com.hrw.android.player.media.IPlayerEngine;
import com.hrw.android.player.media.PlayerEngineImpl;

import android.app.Application;

public class BelmotPlayer extends Application {

	private IPlayerEngine playerEngine;

	public IPlayerEngine getPlayerEngine() {
		if (null == playerEngine) {
			playerEngine = new PlayerEngineImpl();
		}
		return playerEngine;
	}

	private static BelmotPlayer instance;

	@Override
	public void onCreate() {
		instance = this;
		super.onCreate();
	}

	public static BelmotPlayer getInstance() {
		return instance;
	}
}
